package com.liu.LiuRule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LiuRule {

    @Bean
    public IRule myRule(){
        return new LiuRandomRule(); //默认是轮询，现在我们自定义为 LiuRule
    }

}
